﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using FRL.DebtChased.Silverlight.Library;
using FRL.DebtChased.Silverlight.Library.RichContentService;

namespace FRL.DebtChased.ChaseWorkspace
{

	/// <summary>
	/// Declaration of SetCallBackPanelCtrl class
	/// Control for setting up a call-back to the debtor
	/// </summary>
	public partial class SetCallBackPanelCtrl : UserControl
	{

		/////////////////////////////////////////////////////////////
		// Construction

		public SetCallBackPanelCtrl()
		{

			// Load xaml resources
			InitializeComponent();

			// Set call-back
			dtCallBack.SelectedDate = DateTime.Now;
			tmCallBack.Value = DateTime.Now;

		}

		/////////////////////////////////////////////////////////////
		// Event Handlers

		private void ApplyButton_Click(object sender, RoutedEventArgs e)
		{

			// Confirm action
			if (!MessageBoxes.PopupOption("Apply call-back to account?"))
				return;

			// Development message
			MessageBoxes.PopupDevMessage();

		}

		/////////////////////////////////////////////////////////////
		// Operations

		public void PostSupportDataLoad()
		{

			// Called after plug-in has loaded support data

		}

		public void Set(AccountTransport account)
		{

			// Set controls

		}

	}

}
